<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
.fixed-table-body {
	min-height: 300px;
}
</style>
<body class="gray-bg">
	<input id="tableId" name="tableId" class="hidden" th:value="${tableId}">
	<input id="createFlagId" name="createFlagId" class="hidden"
		th:value="${manageTableDO.createFlag}">
	<input id="changeTypeId" name="changeTypeId" class="hidden"
		th:value="${manageTableDO.changeType}">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<table id="exampleTable2" class="table-content" data-mobile-responsive="true">
						<thead>
							<tr>
								<th style="" data-field="columnName" tabindex="0"><div
										class="th-inner ">字段名</div>
									<div class="fht-cell"></div></th>
								<th style="" data-field="columnComment" tabindex="0"><div
										class="th-inner ">中文描述</div>
									<div class="fht-cell"></div></th>
								<th style="" data-field="columnType" tabindex="0"><div
										class="th-inner ">类型</div>
									<div class="fht-cell"></div></th>
									<th style="" data-field="columnLength" tabindex="0"><div
										class="th-inner ">长度</div>
									<div class="fht-cell"></div></th>
								<th style="text-align: center;" data-field="columnTag"
									tabindex="0"><div class="th-inner ">字段标记</div>
									<div class="fht-cell"></div></th>
								<th style="text-align: center;" data-field="id" tabindex="0"><div
										class="th-inner ">操作</div>
									<div class="fht-cell"></div></th>
							</tr>
						</thead>
						<tbody>
							<tr data-index="0">
								<td style=""><input id="columnName" name="columnName"
									class="form-control" type="text" placeholder="字段名" readonly="readonly" value="AUTO_INPUT_DATE"></td>
								<td style=""><input id="columnComment" name="columnComment"
									class="form-control" type="text" placeholder="中文描述" readonly="readonly" value="入库时间"></td>
								<td style=""><select
									data-placeholder="请选择数据类型" name="columnType" id="select-0"
									class="chosen-select form-control chosen-select"
									style="display: none;" disabled="disabled">
										<option value="">--请选择--</option>
										<option data-column-length="" data-column-precision="" data-column-scale="" value="VARCHAR">VARCHAR</option>
										<option data-column-length="" data-column-precision="" data-column-scale="" value="TEXT">TEXT</option>
										<option data-column-length="" data-column-precision="" data-column-scale="" value="DATE">DATE</option>
										<option data-column-length="" data-column-precision="" data-column-scale="" value="DATETIME" selected="selected">DATETIME</option>
										<option data-column-length="" data-column-precision="" data-column-scale="" value="INT">INT</option>
										<option data-column-length="" data-column-precision="" data-column-scale="" value="BIG">BIGINT</option>
										<option data-column-length="" data-column-precision="" data-column-scale="" value="DOUBLE">DOUBLE</option>
								</select></td>
								<td style="">-</td>
								<td style="text-align: center;"><select
									data-placeholder="请选择字段标记" name="columnTag" multiple="multiple" id="select-0"
									class="columnTag chosen-select form-control chosen-select"
									style="display: none;" disabled="disabled">
										<option value="">--请选择--</option>
										<option value="11">企业名称</option>
										<option value="12">统一社会信用代码</option>
										<option value="13">自然人姓名</option>
										<option value="14">身份证号码</option>
										<option value="15" selected="selected">入库时间</option>
										<option value="23">自然人姓名1</option>
										<option value="24">身份证号码1</option>
								</select></td>
								<td style="text-align: center"><a
									class="btn btn-primary btn-sm " href="#" mce_href="#"
									title="添加"><i class="fa fa-plus"></i></a>
								</td>
							</tr>
						</tbody>
					</table>
					<div class="fixed-table-toolbar">
						<th:block th:if="${manageTableDO.createFlag == -1}">
							<div class="columns pull-right">
								<button shiro:hasPermission="md:manage:add" type="button"
									class="btn  btn-primary" onclick="batchColumnsAdd()">
									确认提交</button>
							</div>
						</th:block>
					</div>
				</div>
			</div>
		</div>
	</div>

	<!--shiro控制bootstraptable行内按钮看见性-->
	<div>
		<script type="text/javascript">
			var s_edit_h = 'hidden';
			var s_remove_h = 'hidden';
			var s_resetPwd_h = 'hidden';
		</script>
	</div>
	<div shiro:hasPermission="md:manage:edit">
		<script type="text/javascript">
			s_edit_h = '';
		</script>
	</div>
	<div shiro:hasPermission="md:manage:remove">
		<script type="text/javascript">
			var s_remove_h = '';
		</script>
	</div>
	<div shiro:hasPermission="md:manage:add">
		<script type="text/javascript">
			var s_add_h = '';
		</script>
	</div>

	<div th:include="include :: footer"></div>
	<script th:inline="javascript"> var ctx = [[@{/}]] ; </script>
	<script type="text/javascript"
		src="/js/app/metadata/manage/editColumnsByHand.js"
		th:src="@{/js/app/metadata/manage/editColumnsByHand.js}"></script>
</body>
</html>